package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Shipping;

/**
 * @author:lzq
 * @date: 2018/3/27 11:52
 */
public interface IShippingService {

    ServerResponse add(Integer userId, Shipping shipping);//添加地址

    ServerResponse upadte(Integer userId,Shipping shipping);//更新地址信息

    ServerResponse delete(Integer userId,Integer shippingId);//删除地址

    ServerResponse select(Integer userId,Integer shippingId);//获取用户某个地址的详情

    ServerResponse list(Integer userId,int pageNum,int pageSize);//获取地址列表并分页
}
